/**
 * 
 */
package pits.dao;

import java.util.ArrayList;
import java.util.List;

import pits.dto.UserDTO;

import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * @author ltd
 *
 */
public class LoginDAOTest extends TestCase {

	/**
	 * Test method for {@link pits.dao.LoginDAO#getUser(java.lang.String, java.lang.String)}.
	 */
	public void testGetUser1() {
		LoginDAO dao = new LoginDAO();
		List<UserDTO> result = new ArrayList<UserDTO>();
		result = dao.getUser("user_1", "user_1");
		Assert.assertEquals(1, result.size());
	}
	public void testGetUser2() {
		LoginDAO dao = new LoginDAO();
		List<UserDTO> result = new ArrayList<UserDTO>();
		result = dao.getUser("user_0", "user_1");
		Assert.assertEquals(0, result.size());
	}
	public void testGetUser3() {
		LoginDAO dao = new LoginDAO();
		List<UserDTO> result = new ArrayList<UserDTO>();
		result = dao.getUser("user_1", "user_0");
		Assert.assertEquals(0, result.size());
	}
	public void testGetUser4() {
		LoginDAO dao = new LoginDAO();
		List<UserDTO> result = new ArrayList<UserDTO>();
		result = dao.getUser("user_0", "user_0");
		Assert.assertEquals(0, result.size());
	}

}
